package cn.yanghan.dto;

import cn.yanghan.domain.Course;
import cn.yanghan.domain.CourseDetail;
import cn.yanghan.domain.CourseMarket;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

import javax.validation.Valid;

//封装课程添加的参数
@Component
@AllArgsConstructor
@NoArgsConstructor
@Data
public class CourseSaveDto {
    @Valid
    private Course course;
    @Valid
    private CourseDetail courseDetail;
    @Valid
    private CourseMarket courseMarket;
}